package com.ruoyi.quality.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 用户分级业务对象 quality_user_classification
 *
 * @author ruoyi
 * @date 2023-12-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class QualityUserClassificationBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 工号
     */
    @NotBlank(message = "工号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userName;

    /**
     * 理论
     */
    @ExcelProperty(value = "理论")
    private BigDecimal theory;

    /**
     * 实操
     */
    @ExcelProperty(value = "实操")
    private BigDecimal practice;

    /**
     * 考核
     */
    @ExcelProperty(value = "考核")
    private BigDecimal examine;
    /**
     * 总分
     */
    private BigDecimal total;

    /**
     * 等级
     */
    private String classification;

    /**
     * 标记
     */
    private String flag;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 所属公司
     */
    private String companyId;

    /**
     * 用户类型
     */
    private String userClass;

    /**
     * 用户工号
     */
    private String[] userNameList;

}
